﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using KPIS.GERP.GIMS.MODEL;
using KPIS.GERP.GIMS.DAL;
using KPIS.GERP.GIMS.DALFactory;
using KPIS.DBM;

namespace KPIS.GERP.GIMS.BLL
{
    public class DeliveryNotePenaltyBLL
    {
        private static readonly DeliveryNotePenaltyDAL dal = DataAccess.CreateDeliveryNotePenalty();

        public DeliveryNotePenaltyInfo GetDeliveryNotePenalty(int seq)
        {
            return dal.GetDeliveryNotePenalty(seq);
        }

        public IList<DeliveryNotePenaltyInfo> GetDeliveryNotePenaltyWithParent(int dn_seq)
        {
            return dal.GetDeliveryNotePenaltyWithParent(dn_seq);
        }

        public void Insert(IList<DeliveryNotePenaltyInfo> infoList, Nullable<int> dn_seq, DeliveryNoteInfo info, IDBManager dbManagerTrans)
        {
            dal.Insert(infoList, dn_seq, info, dbManagerTrans);
        }

        public void Insert(DeliveryNotePenaltyInfo info)
        {
            dal.Insert(info);
        }

        public void Update(DeliveryNotePenaltyInfo info)
        {
            dal.Update(info);
        }

        public void DeleteFromDB(IList<DeliveryNotePenaltyInfo> infoList)
        {
            dal.DeleteFromDB(infoList);
        }
    }
}
